from opc_client import OpcClient


if __name__ == '__main__':
    """水利发电"""
    sub_ids = (
        'ns=1;s=t|XMZ水利_功率',
        'ns=1;s=t|XMZ水利_发电机启停',
        'ns=1;s=t|XMZ水利_电压',
        'ns=1;s=t|XMZ水利_电流',
        'ns=1;s=t|XMZ水利_系统启停',
        'ns=1;s=t|XMZ水利_转速',
        'ns=1;s=t|XMZ水利_频率',
    )
    ip = '192.168.2.30'
    port = 4862
    OpcClient(ip, port, sub_ids)
